<?php

namespace Rebecca\RebeccaBundle\Entity;

use Doctrine\ORM\Mapping as ORM;

/**
 * Rebecca\RebeccaBundle\Entity\PresupuestosCentros
 *
 * @ORM\Table(name="presupuestos_centros")
 * @ORM\Entity
 */
class PresupuestosCentros
{
    /**
     * @var integer $id
     *
     * @ORM\Column(name="id", type="integer", nullable=false)
     * @ORM\Id
     * @ORM\GeneratedValue(strategy="IDENTITY")
     */
    private $id;

    /**
     * @var date $rangoInicial
     *
     * @ORM\Column(name="rango_inicial", type="date", nullable=false)
     */
    private $rangoInicial;

    /**
     * @var date $rangoFinal
     *
     * @ORM\Column(name="rango_final", type="date", nullable=false)
     */
    private $rangoFinal;

    /**
     * @var decimal $valor
     *
     * @ORM\Column(name="valor", type="decimal", nullable=false)
     */
    private $valor;

    /**
     * @var CentrosCostos
     *
     * @ORM\ManyToOne(targetEntity="CentrosCostos")
     * @ORM\JoinColumns({
     *   @ORM\JoinColumn(name="id_centro_costo", referencedColumnName="id")
     * })
     */
    private $idCentroCosto;



    /**
     * Get id
     *
     * @return integer 
     */
    public function getId()
    {
        return $this->id;
    }

    /**
     * Set rangoInicial
     *
     * @param date $rangoInicial
     */
    public function setRangoInicial($rangoInicial)
    {
        $this->rangoInicial = $rangoInicial;
    }

    /**
     * Get rangoInicial
     *
     * @return date 
     */
    public function getRangoInicial()
    {
        return $this->rangoInicial;
    }

    /**
     * Set rangoFinal
     *
     * @param date $rangoFinal
     */
    public function setRangoFinal($rangoFinal)
    {
        $this->rangoFinal = $rangoFinal;
    }

    /**
     * Get rangoFinal
     *
     * @return date 
     */
    public function getRangoFinal()
    {
        return $this->rangoFinal;
    }

    /**
     * Set valor
     *
     * @param decimal $valor
     */
    public function setValor($valor)
    {
        $this->valor = $valor;
    }

    /**
     * Get valor
     *
     * @return decimal 
     */
    public function getValor()
    {
        return $this->valor;
    }

    /**
     * Set idCentroCosto
     *
     * @param Rebecca\RebeccaBundle\Entity\CentrosCostos $idCentroCosto
     */
    public function setIdCentroCosto(\Rebecca\RebeccaBundle\Entity\CentrosCostos $idCentroCosto)
    {
        $this->idCentroCosto = $idCentroCosto;
    }

    /**
     * Get idCentroCosto
     *
     * @return Rebecca\RebeccaBundle\Entity\CentrosCostos 
     */
    public function getIdCentroCosto()
    {
        return $this->idCentroCosto;
    }
}